package com.xuecheng.manage_course.controller;

import com.xuecheng.api.course.CategoryControllerApi;
import com.xuecheng.framework.domain.course.ext.CategoryNode;
import com.xuecheng.manage_course.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author HTHLKJ
 * @version 1.0
 * @date 2021/7/2 14:49
 */
@RestController
public class CategoryController implements CategoryControllerApi {

    @Autowired
    private CourseService service;

    @Override
    @GetMapping("/category/list")
    public CategoryNode findList() {
        return service.findList();
    }
}
